package com.zhong.gang.app.mvp;

import android.content.Context;

import com.zhong.gang.app.api.Api;
import com.zhong.gang.app.api.HttpUtils;
import com.zhong.gang.applib.http.callback.Callback;

import java.io.File;

public class CommonPresenter {

    public static final void upImg(Context context, File file, Callback callback){
        HttpUtils.post(Api.upImg,context)
                .addFile("file",file.getName(),file)
                .build().execute(context,"上传图片",callback);
    }
}
